package cn.yeamin.ms.vo;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.yeamin.ms.vo.support.BaseVO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author SPPan
 * @since 2016-12-28
 */
@Entity
@Table(name = "tb_resource")
@Data
@EqualsAndHashCode(callSuper=false)
public class Resource extends BaseVO implements Serializable {

	    
	private static final long serialVersionUID = 8853199797805140526L;

	/**
	 * 资源id
	 */
	@Id
	private Long id;

	/**
	 * 资源名称
	 */
	private String name;

	/**
	 * 资源唯一标识
	 */
	private String sourceKey;

	/**
	 * 资源类型,0:目录;1:菜单;2:按钮
	 */
	private String type;

	/**
	 * 资源url
	 */
	private String sourceUrl;

	/**
	 * 层级
	 */
	private String level;

	/**
	 * 排序
	 */
	private String sort;
	
	
	private Long parentId;

	/**
	 * 图标
	 */
	private String icon;



}
